063 function blocks
您好,在这个视频中,我们将创建一个新函数博客,在这个函数中,博客语言将是ECL编程语言,新函数。
Hello, in this video, we will create a new function blog, and in this function, blog language will be ECL programming language, new function.
Willock 已创建,我们将使用编程语言在此处定义输入和输出。
Willock is created and we will define our inputs and outputs to here with the programming language.
我将定义我的输入。
And I will define my input.
例如,输入一,输入二。
For example, input one and input two.
根据这个输入输出一和输出二。
According to this input output one and output two.
在这里我会说输出一。
And in here I will say output one.
好的,嗯,根据输入一,输出二就会反转。
OK, um, according to input one, output two will be inverted.
不是输入,让我们也在这里定义输入,例如,值、想要和值,嗯,也许在函数内部我们可以做这些事情,删除这个,然后它就不是这些输入之一。
Not input to and let us define inputs in here also, for example, value, want and value, um, maybe inside of the function what we can do these things, delete this one and then it is one of these inputs are not.
对我们有好处,但没关系,让我们使用最新的命令,这些对于男人的输出和输入和输出以及这里的变量并不重要。
Good for us, but it doesn't matter, let's the latest command, these are not important for men output's and in and out and in here the variables.
例如,我会说第一卷和第二卷以及第一卷、第二卷、第三卷。
For example, I will say volume one and volume two and one, two, three.
作为输入,我会在这里说,这将是值,例如,音量将是整数。
And as input, I would say in here, this will be value, for example, just the volume will be integer.
并作为输出结果。
And as an output result.
整数。
Integer.
好的,在这里,一张邮票,这将是。
OK, and in here, a stamp, this will be.
整数。
Integer.
好的,好的,好的,现在,例如,我们拥有什么,我们有作为输入值,所以我们的功能块内部,例如,值一值一,例如等于值。
OK, and OK and OK, now, for example, what we have, we have as input value, so the inside of the our function block, for example, value one value one, for example, equals to value.
例如,乘以时间。
Multiply by, for example, time.
好的,现在我们可以在这里说些什么作为输出?
OK, and what can we say in here now as an output in here?
结果。
Result.
结果等于。
Result equals.
第一卷.
Volume one.
好的,现在让我们下载这个项目,但首先,我现在将我的博客放到 Manabe 并将其发送到主要或主要组织博客。
OK, now let's do a download this project, but first of all, I will put my blog to Manabe now and send it to main or main organization blog.
并且输入M零点零和零点一的值Mw,例如六,这里输入一。
And is input M zero point zero and zero point one the value M w, for example, six and in here input one.
但我想激活这个输入。
But I want to activate this input one.
但是呃,在程序内部也许我需要像这样删除这个。
But uh, inside of the program maybe I need to delete this one like this.
好的,现在我需要转到 Main 或 B,你可以看到这是不行的。
OK, now I need to go to Main or B and you can see this is not OK.
所以我想关闭这个博客,或者我们需要编译它,然后再次将此功能移到此处,确定,现在第二个已激活。
So I want to close this blog or we need to compile it and once more this function to here and OK, now the second is activated.
所以这个数据块我可以删除它,现在M零点零零点一和卷W。
So this data block that I can delete it and now M zero point zero zero point one and the volume W.
六、OK,输出例如Q零点零和零点一,结果mw。
Six, OK, output will be, for example, Q zero point zero and zero point one, and the result m w.
例如,时间,现在我可以将该项目下载到我的模拟器中。
Time, for example, so now I can do a download this project to my simulator.
现在我们已准备就绪并进行监控。
Now we are ready and monitoring.
因此,如果我激活此输入,则结果为 true,因为如果输入 1 到输出 1,则结果为 true。
So if I activate this input, so the result is true because of y if input one to an output one.
真的。
True.
让我们进入这里的一个功能块。
Let's go to a function block in here.
如果输入一二且输出一为真,并且如果输入二为假,则输出二为真,因为我们将此输入反转为输出。
If input one two and output one is true and if input two is false, then output two is true because of why we are inverting this input to output.
让我们去那儿。
Let's go there.
这是错误的。
This is false.
这是真实的。
This is true.
这是真实的。
This is true.
这是错误的,因为没有说明或没有使用其语言。
This is false because of not instruction or not using in its language.
如果我将此值更改为修改 Okparanta 50,则结果为 500。
And if I change this value to as modify Okparanta 50, so the result is five hundred.
您可以看到它,因为在这里我们将值乘以输入值,我们输入 50 值和 50 乘以 10。
You can see it because of Y in here where we are multiplying the value as input value, we enter 50 value and 50 multiplied by ten.
结果是五百五百。
The result is five hundred and five hundred.
写入结果的是输出反转或 Merkabah 全局 Merkabah。
Written to result is output invert or Merkabah global Merkabah.
所以现在这就是我们如何使用功能块,但也可能不是。
So now this is how can we use function block and it may not be.
以及我们如何在功能块中使用单元编程。
And also how can we use a cell programming in function blocks.
那么我们可以在这里写很多东西。
Then we can write a lot of things in here.
我们可以通过简单的指令及时将我们的文化放在这里,例如数学指令和其他指令。
We can put our culture to here in time and for example, the math instructions and other instructions with a simple instruction.
我们可以将它们全部定义为输入和输出,即变量。
And we can define them all as input and output, as variables.
在这里我们可以使用,我们使用和变量,然后是下面的这个函数。
In here we can use, we are using and variables and then this function below.
我们可以在主大厅的字母图中使用它,就像这个视频未完成的那样。
We can use it in the letter diagram, in the main lobby with like this unfinished for this video.
下一个视频见。
See you in the next video.